﻿using System;
using System.Windows.Input;

namespace Com.CodePlex.SPPower.ViewModel {

	public class CmdParameterViewModel : ViewModel {

        public CmdParameterViewModel(string name, Type type) {
            if (name == null) {
                throw new ArgumentNullException("name");
            }
            if (type == null) {
                throw new ArgumentNullException("type");
            }
            base.DisplayName = name;
			this.Type = type;
		}

		public Type Type { get; private set; }

        private object value_;
        public object Value {
            get { return value_; }
            set {
                if (value_ != value) {
                    value_ = value;
                    OnPropertyChanged(() => Value);
                }
            }
        }
	}
}